//package com.zengfa.task.server.support;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.core.env.Environment;
//import org.springframework.stereotype.Service;
//
//import com.zengfa.task.api.service.ClientApiService;
//import com.zengfa.task.api.utils.JobUtil;
//import com.zengfa.task.server.domain.entity.Job;
//
//import lombok.extern.slf4j.Slf4j;
//
//@Service
//@Slf4j
//public class ClientApiSupport {
//
//	@Autowired
//	private Environment environment;
//	@Autowired
//	private ClientApiService clientApiService;
//	
//	public void syncJobStatus(Job job) {
//		String port = environment.getProperty("server.port");
//		String serverIp = JobUtil.getLocalIp() + ":" + port;
//		String runIp = job.getExecIp();
//		if(!serverIp.equals(runIp)) {
//			return;
//		}
//		clientApiService.syncJobStatus(job.getJobId());
//	}
//	
//}
